#define _CRT_SECURE_NO_WARNINGS

//字符串删除*及其邻近的数

class Solution {
public:
    string removeStars(string s) {
        string ret;
        for (auto ch : s) {
            if (ch != '*') {
                ret += ch;
            } else {
                ret.pop_back();
            }
        }
        return ret;
    }
};


